d32941341431b55cecff284ad6e155e6a54d4c4a,awaitility/src/test/java/com/jayway/awaitility/UsingFieldSupplierTest.java,UsingFieldSupplierTest,givenAnnotationAndNameWhenAnnotationMatchButNameNotFoundThenFieldNotFoundExceptionIsThrown,#,203

Before Change


        FakeRepositoryWithAnnotation repository = new FakeRepositoryWithAnnotation();
        new Asynch(repository).perform();
        Object one = 1;
        await().until(fieldIn(repository).annotatedWith(ExampleAnnotation.class).andWithName("value2"), equalTo(one));
        assertEquals(1, repository.getValue());
    }

After Change


        FakeRepositoryWithAnnotation repository = new FakeRepositoryWithAnnotation();
        new Asynch(repository).perform();
        byte one = (byte) 1;
        await().until(fieldIn(repository).ofType(byte.class).andAnnotatedWith(ExampleAnnotation.class).andWithName("value"),
                equalTo(one));
        assertEquals(1, repository.getValue());
    }